import request from '@/utils/request'

export function login(loginUser, password) {
  return request({
    url: '/api/user/login',
    method: 'post',
    data: {
      loginUser,
      password
    }
  })
}

export function logout() {
  return request({
    url: '/api/user/logout',
    method: 'post'
  })
}

export function list() {
  return request({
    url: '/api/user/list',
    method: 'get'
  })
}